package com.my.util;

/**
 * @author liangxin
 * @since 08/08/2019
 */
public class ArrayUtils {


    public static StringBuilder Array2String(int[] array) {
        StringBuilder builder = new StringBuilder(array.length);
        for (int in : array) {
            if (builder.length() < 1) {
                builder.append(in);
            } else {
                builder.append(String.format(",%s", in));
            }
        }
        return builder;
    }

}
